home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / art&graf.ix / art-5827 / qgif / gifview.txt < prev   
Text File  |  1985-11-19  |  9KB  |  171 lines

  1.  ==============================================================================
  2.  ==   GIFcolor & GIFscale :  Two Very Fast GIF Viewers For Colour Systems.   ==
  3.  ==             Robert Barnhardt & Robert Steger, November 1990.             ==
  4.  ==============================================================================
  5.  ==                          Files In This Archive                           ==
  6.  ==                         """""""""""""""""""""""                          ==
  7.  == GIFcolor.TTP - Viewer #1, uses the 16 most popular colors in the image.  ==
  8.  == GIFscale.TTP - Viewer #2, maps the image to gray and tinted scales.      ==
  9.  == GIFview.TXT  - This text file.                                           ==
  10.  ==============================================================================
  11.  ==             GIFcolor and GIFscale are, of course, freeware.              ==
  12.  ==   The programs in this archive are (C) 1990 Brain~Waves Freeware Group.  ==
  13.  ==  GIF (Graphics Interchange Format) is (C) 1987 CompuServe, Incorporated. ==
  14.  ==============================================================================
  15.  
  16. Why Another GIF Viewer? (2, even!)
  17. """""""""""""""""""""""""""""""""""
  18.      In the manner of most of the programs we write, these GIF viewers were
  19.   not conceived, planned, or developed in any sense of the word; rather, they
  20.   came into being virtually overnight, much like a pimple.  It was quite a
  21.   surprise, then, when a use became apparent for them.
  22.  
  23.      Most everyone keeps their GIFs on floppies, and these disks are often
  24.   quite full, correct?  If we could develop these viewers into TTP programs
  25.   that could be "Installed Applications", they would be ideal in this
  26.   situation.  Strangely, we actually did this, and so you hold in your hands
  27.   two of the smallest, fastest GIF viewers for the ST.  (Ooooh.)
  28.  
  29.  
  30. So, What Do I Do With Them?
  31. """"""""""""""""""""""""""""
  32.  
  33.   Method One
  34.   """""""""""
  35.      From the desktop, double-click on either of the viewers, and a parameter
  36.   line should appear.  Here's where you tell the viewer what GIF(s) you wish
  37.   to view by means of a path-and-file-specification string.  I'll spell it out
  38.   for you with a few examples.
  39.  
  40.      Multiple
  41.      """"""""
  42.           *.GIF               Views all GIFs in the current directory
  43.           A:\*.GIF            Views all GIFs in the root dir. of drive A.
  44.           A:\GIF\*.GIF        Views all GIFs in the \GIF folder on drive A.
  45.           C:\A*.GIF           Views all GIFs in the root dir. of drive C
  46.                                that begin with the letter "A".
  47.  
  48.      Single
  49.      """"""
  50.           YAWN.GIF            Views "YAWN.GIF" in the current directory.
  51.           C:\SNOOZE.GIF       Views "SNOOZE.GIF" in the root dir. of drive C.
  52.           D:\GIF\BORING.GIF   Views "BORING.GIF" in the \GIF folder on drive D.
  53.  
  54.      Um, at least I hope all of those would work...
  55.  
  56.   Method Two
  57.   """""""""""
  58.      Make either viewer (not both!) an "Installed Application" for file type
  59.   GIF.  For those who don't know, here's a little explanation of how to perform
  60.   this.
  61.  
  62.      Click once on one of the viewers from the desktop, thereby highlighting
  63.   it.  Go up to the Options menu, and select "Install Application...".  Set
  64.   the "Document Type" in the dialog box that appears to "GIF", click on the
  65.   OK button, and you're all set.  You may now double click on a GIF picture
  66.   from the desktop, and the GIF utility that you have installed will load
  67.   and view that GIF with no further work on your part.
  68.  
  69.      If you decide that you like the utility installed, arrange the desktop
  70.   in a manner that's visually appealing to you.  This will probably be futile,
  71.   so when you decide that the desktop can't look good, select "Save Desktop"
  72.   from the Options menu.  From now on, if you boot your computer with that
  73.   disk in the drive, the utility of your choice will be "Installed".
  74.  
  75.  
  76. So, The Picture's Loaded...
  77. """"""""""""""""""""""""""""
  78.      If you loaded a GIF picture from floppy, you will have seen a title screen
  79.   that briefs you on the various keys active (holding ALTERNATE will keep the
  80.   screen up, in case you're not a speed reader).  This title screen will not
  81.   appear if a picture is loaded from any drive other than A or B (i.e. a
  82.   hard drive or ramdisk) for speed reasons, but if you'd like to see it in
  83.   this situation, simply hold down alternate while the GIF viewer is loading.
  84.  
  85.             0                 Selects true grey palette (GIFscale only).
  86.           1 to 6              Selects tinted palettes (GIFscale only).
  87.           ARROWS              Scroll around picture, if larger than screen.
  88.             S                 Save palette and screen as a DEGAS PI1.
  89.  
  90.    ENTER, SPACE, RETURN       Next picture (exit, if viewing one picture).
  91.         UNDO, ESC             Exit (abort multi-view, if applicable).
  92.  
  93.  
  94. Not Like I Care, But How Do They Work?
  95. """""""""""""""""""""""""""""""""""""""
  96.      GIFscale allocates memory for the picture to be decompressed to, and then
  97.   allocates as big a file buffer as is possible.  The GIF palette is converted
  98.   to a luminance value from 0 to 15 (black to white), and the entire picture is
  99.   decompressed and drawn according to these luminance values.  Rarely looks
  100.   better than GIFcolor, but hey... variety is the spice, right?
  101.  
  102.      GIFcolor is a bit more complex.  After allocating buffers like GIFscale,
  103.   GIFcolor decompressed the entire picture (unconverted) to memory.  While it
  104.   is being decompressed, a table of "popularity" values is being updated to
  105.   reflect how often each color in the GIF palette is being used.  When this
  106.   stage is complete, GIFcolor then picks the 16 most popular colour from the
  107.   GIF palette and maps the rest of the colours in the palette to these colours.
  108.   Finally, the image is drawn with the calculated palette and lookup tables.
  109.  
  110.      Neither of these programs has been optimized in the least.  Actually,
  111.   we're afraid that if we return to them, we won't have a clue as to what we
  112.   did.  Nevertheless, they will certainly be fixed up and upgraded in the
  113.   future.  We've got to clean up the source for both, add comments, change
  114.   rudely named labels and so forth, but if you'd like the source, just get in
  115.   touch.  Free, of course... the day we write something worth selling, we will.
  116.  
  117.      For anyone who's interested, our next (minor) project is a GIF to LowRez/
  118.   Spectrum converter using RGB dithering (Burkes error dispersion).  This will
  119.   look much better and work much faster than most anything else I've seen.
  120.  
  121.  
  122. Finally, The Cold, Hard Facts...
  123. """""""""""""""""""""""""""""""""
  124.  
  125.  Picture           Resolution    =  BGIF  ViewGIF  FastGIF  GIFscale  GIFcolor
  126. ===============================================================================
  127.  BLIZZARD.GIF      320x200x32    =  1:07    37       10        6         6
  128.  DRAGEGG.GIF       320x200x256   =  1:00    31        9        5         5
  129. +MICKEY.GIF        640x400x16    =  ----   1:37     ----      11        11
  130. *MONALISA.GIF      640x480x256   =  ----   ----     ----      20        20
  131. ===============================================================================
  132.  Program Size (+ RSC, if appl.)  =  29600  82640    32215    3108      3070
  133. ===============================================================================
  134.        + BGIF and FastGIF could not view MICKEY.GIF with 512K of memory.
  135.  * BGIF, ViewGIF, and FastGIF could not view MONALISA.GIF with 512K of memory.
  136.  
  137.      This is not meant to demean any of the other programs in the table, but
  138.   merely to show that our programs do have a niche to fill.  Time measurement
  139.   began at the moment the programs began to load the GIF (from floppy) and
  140.   ceased at the instant the picture was completely displayed.
  141.  
  142.  
  143. That's It?
  144. """""""""""
  145.      Well, yeah... what did you expect?  One warning: there is no support for
  146.   multiple images or local colour palettes in this issue of GIFcolor and
  147.   GIFscale.  If someone can provide us with an image that doesn't work with
  148.   either of these viewers, the problem (unless it's with the picture) will
  149.   be corrected.  If you have questions, comments, bug reports, or practically
  150.   anything worth relating, contact us in one of the following ways.
  151.  
  152.      We'd like to hear some suggestions as to what sort of programs you'd like
  153.   to see written for the ST, so we won't write any useless trash.  (Too late?
  154.   Ha ha, very funny...)
  155.  
  156.           CompuServe:    73707,533
  157.  
  158.           Phone     :    (416)/871-3868, the later, the better.
  159.  
  160.           Address   :    Brain~Waves Freeware Group
  161.                          619 Central Ave
  162.                          Fort Erie, Ontario
  163.                          CANADA  L2A 3V6
  164.  
  165.      In keeping with the holiday spirit, hello to Matt Rubelj, John Spirko,
  166.   Sandra ?, and company.  Have a merry Christmas and a happy new year
  167.   everyone, and take care.
  168.  
  169.                                                      Robert Barnhardt
  170.                                                      Robert Steger
  171.